<?php
namespace app\common\model;

use think\Model;

class Audit extends Model
{
    protected $insert = ['create_time'];

    /**
     * 创建时间
     * @return bool|string
     */

     protected function setCreatetimeAttr()
     {
        return date('Y-m-d H:i:s');
     }

     protected function getCreatetimeAttr($value){
         return  strtotime($value);
     }
}